package com.qn.domian;


import java.sql.Timestamp;

public class Production {

  private int pId; //作品编号
  private String pHeadline; //作品标题
  private String pictureId; //作品图片
  private int uId; //用户编号
  private int labelId; //作品标签ID
  private String pLike; //喜欢次数
  private String pCollect; //收藏次数
  private Timestamp pTime; //发布时间
  private String pIntroduce; //作品介绍
  private String pComment; //评论次数


  public Production() {
  }

  public Production(int pId, String pHeadline, String pictureId, int uId, int labelId, String pLike, String pCollect, Timestamp pTime, String pIntroduce, String pComment) {
    this.pId = pId;
    this.pHeadline = pHeadline;
    this.pictureId = pictureId;
    this.uId = uId;
    this.labelId = labelId;
    this.pLike = pLike;
    this.pCollect = pCollect;
    this.pTime = pTime;
    this.pIntroduce = pIntroduce;
    this.pComment = pComment;
  }

  public int getpId() {
    return pId;
  }

  public void setpId(int pId) {
    this.pId = pId;
  }

  public String getpHeadline() {
    return pHeadline;
  }

  public void setpHeadline(String pHeadline) {
    this.pHeadline = pHeadline;
  }

  public String getPictureId() {
    return pictureId;
  }

  public void setPictureId(String pictureId) {
    this.pictureId = pictureId;
  }

  public int getuId() {
    return uId;
  }

  public void setuId(int uId) {
    this.uId = uId;
  }

  public int getLabelId() {
    return labelId;
  }

  public void setLabelId(int labelId) {
    this.labelId = labelId;
  }

  public String getpLike() {
    return pLike;
  }

  public void setpLike(String pLike) {
    this.pLike = pLike;
  }

  public String getpCollect() {
    return pCollect;
  }

  public void setpCollect(String pCollect) {
    this.pCollect = pCollect;
  }

  public Timestamp getpTime() {
    return pTime;
  }

  public void setpTime(Timestamp pTime) {
    this.pTime = pTime;
  }

  public String getpIntroduce() {
    return pIntroduce;
  }

  public void setpIntroduce(String pIntroduce) {
    this.pIntroduce = pIntroduce;
  }

  public String getpComment() {
    return pComment;
  }

  public void setpComment(String pComment) {
    this.pComment = pComment;
  }

  @Override
  public String toString() {
    return "Production{" +
            "pId=" + pId +
            ", pHeadline='" + pHeadline + '\'' +
            ", pictureId='" + pictureId + '\'' +
            ", uId=" + uId +
            ", labelId=" + labelId +
            ", pLike='" + pLike + '\'' +
            ", pCollect='" + pCollect + '\'' +
            ", pTime=" + pTime +
            ", pIntroduce='" + pIntroduce + '\'' +
            ", pComment='" + pComment + '\'' +
            '}';
  }
}
